<?php echo $header; ?>
<?php if ($error_warning) { ?>
    <div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<?php if ($success) { ?>
    <div class="success"><?php echo $success; ?></div>
<?php } ?>
<div class="box">
    <div class="left"></div>
    <div class="right"></div>
    <div class="heading">
        <h1 style="background-image: url('view/image/tooltip.png');"><?php echo $heading_title; ?></h1>
        <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_save; ?></span></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
    </div>
    <div class="content">
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
            <table class="form">
                <tr>
                    <td><?php echo $entry_low_stock_warning; ?></td>                    
                    <td>
                        <?php if($low_stock_warning){ ?>
                            <input name="low_stock_warning" type="checkbox" value="1" checked="checked" />
                        <?php }else{ ?>
                            <input name="low_stock_warning" type="checkbox" value="1" />
                        <?php } ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $entry_low_stock_item; ?></td>                    
                    <td><input name="low_stock_item" type="text" value="<?php echo $low_stock_item; ?>" />                 
                </tr>
                <tr>
                    <td><?php echo $entry_delivery_time_instock; ?></td>                    
                    <td><input name="delivery_time_instock" type="text" value="<?php echo $delivery_time_instock; ?>" />                 
                </tr>
                <tr>
                    <td><?php echo $entry_delivery_time_outstock; ?></td>                    
                    <td><input name="delivery_time_outstock" type="text" value="<?php echo $delivery_time_outstock; ?>" />                 
                </tr>   
                <tr>
                    <td><?php echo $entry_contact_text; ?></td>                    
                    <td><textarea name="contact_text" cols="80" rows="3"><?php echo $contact_text; ?></textarea></td>                 
                </tr>
                <tr style="display: none;">
                    <td><?php echo $entry_contact_info; ?></td>                    
                    <td><textarea name="contact_info" cols="80" rows="4"><?php echo $contact_info; ?></textarea></td>                 
                </tr> 
                <!--
                <tr>
                    <td><?php echo $entry_size_hint; ?></td>                    
                    <td><textarea name="size_hint" cols="80" rows="3"><?php echo $size_hint; ?></textarea></td>
                </tr>
                -->
                <tr>
                    <td><?php echo $entry_search_hint; ?></td>                    
                    <td><textarea name="search_hint" cols="80" rows="3"><?php echo $search_hint; ?></textarea></td>                 
                </tr>                 
                <tr>
                    <td><?php echo $entry_delivery_hint; ?></td>                    
                    <td><textarea name="delivery_hint" cols="80" rows="3"><?php echo $delivery_hint; ?></textarea></td>                 
                </tr>
                <tr>
                    <td><?php echo $entry_shipping_note; ?></td>                    
                    <td><textarea name="shipping_note" cols="80" rows="3"><?php echo $shipping_note; ?></textarea></td>                 
                </tr>
                <tr>
                    <td><?php echo $entry_newsletter_text; ?></td>                    
                    <td><textarea name="newsletter_text" cols="80" rows="3"><?php echo $newsletter_text; ?></textarea></td>                 
                </tr>
            </table> 
            <input type="hidden" name="size_hint" value="<?php echo $size_hint; ?>" />
        </form>
    </div>
</div>

<?php echo $footer; ?>